﻿using AutoMapper;
using System;
using System.Collections.Generic;
using System.Text;
using TL_Cloud.Models.BookShop;

namespace TL_Cloud.ViewModels.BookShop.BaseSubject
{
   public class BaseSubjectResource : BaseSubjectUpdateResource
    {
        public string SubjectId { get; set; }
        
    }

    public class BaseSubjectBasicResource
    {
        public string SubjectName { get; set; }
        public string GradeId { get; set; } 
        public int? Sort { get; set; }
        public string Remark { get; set; }
        public string ManagerId { get; set; }
       
    }
    /// <summary>
    /// 基础科目更新资源
    /// </summary>
    public class BaseSubjectUpdateResource: BaseSubjectBasicResource
    {
        public int? EnabledMark { get; set; }
    }

    public class BasSubjectMappingProfile : Profile
    {
        public BasSubjectMappingProfile()
        {
            CreateMap<Base_SubjectInfo, BaseSubjectResource>();
            CreateMap<BaseSubjectResource, Base_SubjectInfo>();
            CreateMap<BaseSubjectBasicResource, Base_SubjectInfo>();
            CreateMap<BaseSubjectUpdateResource, Base_SubjectInfo>();
        }

    }
}
